home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17633 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.wwa.com!rmartin
  2. From: rmartin@oma.com (Robert C. Martin)
  3. Newsgroups: comp.object,comp.lang.c++,comp.realtime,comp.dcom.telecom.tech,comp.arch.embedded
  4. Subject: Re: Can OO be successful in real-time embedded systems?
  5. Date: 16 Apr 1996 21:14:15 GMT
  6. Organization: Object Mentor
  7. Message-ID: <RMARTIN.96Apr16161415@rcm.oma.com>
  8. References: <316BF0C5.1FE1@condat.de> <RMARTIN.96Apr11113222@rcm.oma.com>
  9.     <4kjfrh$28g@Starbase.NeoSoft.COM>
  10. NNTP-Posting-Host: rcm.oma.com
  11. In-reply-to: timd@Starbase.NeoSoft.COM's message of 11 Apr 1996 12:34:41 -0500
  12.  
  13. In article <4kjfrh$28g@Starbase.NeoSoft.COM> timd@Starbase.NeoSoft.COM (Tim Dugan) writes:
  14.  
  15.    Although I have no figures or measurements, I would have to say
  16.    that I suspect that the one area where C++ is slower is that
  17.    there is something about C++ that encourages programmers to
  18.    perform a great deal more allocation and de-allocation of 
  19.    memory, causing memory fragmentation and slowing the allocation/
  20.    deallocation process.  
  21.  
  22. There is nothing about C++ that encourages programmers to perform
  23. a great deal more allocation and de-allocation of memory.  Some
  24. popular styles advocate this, but they advocate it in C++ as well as
  25. other languages.  
  26.  
  27. Also.  If you use a programming style that is heavily weighted towards
  28. dynamic memory allocation, you can prefent fragmentation and heap
  29. delays by using non-deterministic heaps.  
  30.  
  31.  
  32. --
  33. Robert Martin       | Design Consulting   | Training courses offered:
  34. Object Mentor Assoc.| rmartin@oma.com     |   OOA/D, C++, Advanced OO
  35. 14619 N. Somerset Cr| Tel: (847) 918-1004 |   Mgt. Overview of OOT
  36. Green Oaks IL 60048 | Fax: (847) 918-1023 | http://www.oma.com
  37.  
  38.